home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 5 / Example 5.6 / object.h < prev   
Encoding:
C/C++ Source or Header  |  2006-06-29  |  550 b   |  32 lines

  1. #ifndef RTS_OBJECT
  2. #define RTS_OBJECT
  3.  
  4. #include <d3dx9.h>
  5. #include <vector>
  6. #include "functions.h"
  7. #include "debug.h"
  8. #include "mesh.h"
  9.  
  10. HRESULT LoadObjectResources(IDirect3DDevice9* Device);
  11. void UnloadObjectResources();
  12.  
  13. #define TILE 0
  14. #define HOUSE 1
  15. #define HOUSE2 2
  16. #define PARK 3
  17.  
  18. class OBJECT{
  19.     public:
  20.         OBJECT();
  21.         OBJECT(int t, D3DXVECTOR3 pos, D3DXVECTOR3 rot, D3DXVECTOR3 sca);
  22.         void Render();
  23.  
  24.         MESHINSTANCE m_meshInstance;
  25.         int m_type;
  26.         BBOX m_bBox;
  27.         BSPHERE m_bSphere;
  28.         bool m_rendered;
  29. };
  30.  
  31.  
  32. #endif